package com.luych.toolbox.base.service.entity;

import com.luych.toolbox.common.enums.ScriptType;
import com.luych.toolbox.common.service.base.BaseEntity;

import javax.persistence.*;

@Entity
@Table(name = "script")
public class Script extends BaseEntity {

    @Column(name = "name")
    private String name;
    @Column(name = "type")
    @Enumerated(EnumType.STRING)
    private ScriptType type;
    @Column(name = "text")
    private String text;
    @Column(name = "description")
    private String description;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ScriptType getType() {
        return type;
    }

    public void setType(ScriptType type) {
        this.type = type;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}